<?php

/**
 * Smarty plugin
 * 
 * @package Smarty
 * @subpackage PluginsModifier
 */

Loader::using("ext::libs::MicrosoftDateFormatter");
/**
 * Smarty capitalize modifier plugin
 * 
 * Type:     modifier<br>
 * Name:     capitalize<br>
 * Purpose:  capitalize words in the string
 * 
 * @link 
 * @author Monte Ohrt <monte at ohrt dot com> 
 * @param string $ 
 * @return string 
 */
function smarty_modifier_json_to_date($jsonDateObject, $format = "M d Y") {
    return MicrosoftDateFormatter::fromJSON($jsonDateObject, $format);
}

?>